All Functions of Week 1

filter

{dplyr}

Filter out rows of a data frame according to logical vector

c

{base}

Combine values/vectors into a vector

range

{base}

Return range of values

max

{base}

Get maximum of a vector

install.packages

{utils}

Install R packages

head

{utils}

Show first 5 rows of a data frame

View

{base}

View a data frame

cut

{base}

Convert Numeric to Factor

min

{base}

Get minimum of a vector

mean

{base}

Get mean of a vector

library

{base}

Load an R package

var

{stats}

Calculate variance

median

{stats}

Get median of a vector

str

{utils}

Get the structure of an R object

summary

{base}

Obtain summary statistics or detailed regression output

names

{base}

Get or set names of an object

setwd

{base}

Set Working Directory

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

ordered

{dplyr}

Create an ordered factor

mutate

{dplyr}

Create new variables

sd

{stats}

Get standard deviation of a vector

read_excel

{readxl}

Read an Excel file

is.na

{base}

Check if a value is NA/elements of vector are NA

length

{base}

Returns number of elements in an object

The end!